package lion.framework.core.web;

import javax.servlet.ServletContext;

/***
 * 
 * @author lion
 * @email hl_0074@sina.com
 * @date 2015年9月21日
 */
public class ApplicationContext {

	private static ServletContext context;

	public static void setContext(ServletContext context) {

		ApplicationContext.context = context;
	}

	public static void set(String key, Object value) {

		context.setAttribute(key, value);
	}

	public static Object get(String key) {

		return context.getAttribute(key);
	}

}
